package com.xyz.app.controller;

import com.free.common.vo.ResultModel;
import com.xyz.domain.model.RegisterModel;
import com.xyz.service.CustomerService;
import com.xyz.service.RegistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

@Controller
public class RegistController {

    @Autowired
    RegistService customerService;

    @RequestMapping(value = "/register.json")
    @ResponseBody
    public ResultModel register(RegisterModel registerModel, HttpServletRequest request){
        return customerService.register(registerModel, request);
    }


}
